package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.TraIssueMapper;
import com.ruoyi.bussiness.domain.TraIssue;
import com.ruoyi.bussiness.service.ITraIssueService;
import com.ruoyi.common.core.text.Convert;

/**
 * 培训期号Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class TraIssueServiceImpl implements ITraIssueService 
{
    @Autowired
    private TraIssueMapper traIssueMapper;

    /**
     * 查询培训期号
     * 
     * @param id 培训期号主键
     * @return 培训期号
     */
    @Override
    public TraIssue selectTraIssueById(Long id)
    {
        return traIssueMapper.selectTraIssueById(id);
    }

    /**
     * 查询培训期号列表
     * 
     * @param traIssue 培训期号
     * @return 培训期号
     */
    @Override
    public List<TraIssue> selectTraIssueList(TraIssue traIssue)
    {
        return traIssueMapper.selectTraIssueList(traIssue);
    }

    /**
     * 新增培训期号
     * 
     * @param traIssue 培训期号
     * @return 结果
     */
    @Override
    public int insertTraIssue(TraIssue traIssue)
    {
        return traIssueMapper.insertTraIssue(traIssue);
    }

    /**
     * 修改培训期号
     * 
     * @param traIssue 培训期号
     * @return 结果
     */
    @Override
    public int updateTraIssue(TraIssue traIssue)
    {
        return traIssueMapper.updateTraIssue(traIssue);
    }

    /**
     * 批量删除培训期号
     * 
     * @param ids 需要删除的培训期号主键
     * @return 结果
     */
    @Override
    public int deleteTraIssueByIds(String ids)
    {
        return traIssueMapper.deleteTraIssueByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除培训期号信息
     * 
     * @param id 培训期号主键
     * @return 结果
     */
    @Override
    public int deleteTraIssueById(Long id)
    {
        return traIssueMapper.deleteTraIssueById(id);
    }
}
